AnnieRoot.index=AnnieRoot.index||{};
index.SceneItem = function () {
    var s = this;
    annie.Sprite.call(s);
    s.mouseChildren = false;

};
A2xExtend(index.SceneItem, annie.Sprite);
index.SceneItem.displayList = [];
index.SceneItem.prototype.initData = function (id, data) {
    var s = this;
    if (data) {
        s.removeAllChildren();
        var newId = data.id;
        if (!index.SceneItem.displayList[newId]) {
            index.SceneItem.displayList[newId] = new index["SceneItem" + newId]();
        }
        var child = index.SceneItem.displayList[newId];
        child.x = 80;
        child.y = 100;
        s.addChild(child);
        s.id = id;
    }
};
index.CheckScene = function () {
    var s = this;
    annie.Sprite.call(s);
    /*_a2x_need_start*/s.left_btn=null;s.right_btn=null;/*_a2x_need_end*/
    annie.initRes(s,"index","CheckScene");
    var sp = new annieUI.ScrollList(index.SceneItem, 160, 120, 480, 120, false);
    sp.x = 35;
    sp.y = 15;
    sp.updateData([{id: 0}, {id: 1}, {id: 2}, {id: 3}, {id: 4}]);
    s.addChild(sp);
    s.addEventListener(annie.MouseEvent.CLICK, function (e) {
        if (e.target.id != undefined) {
            s.parent.gotoAndPlay("back", false);
            index.MakeMc.sceneId = e.target.id;
        }
    });
    s.left_btn.mouseEnable=false;
    s.right_btn.mouseEnable=false;
};
A2xExtend(index.CheckScene, annie.Sprite);
